getModels function

Get models from a study