Construct models from json
Implemented more model methods.