Added editable name and attributes to instances

Also, added the concept of model.