implements viewmodelDelegate and connects model with controller
implements error delegate
implements query property in model
adds accessor methods to model
implements tableview delegate in controller