added saving objects to datastore
added storing of compound objects