added models, collections and REST API