added object loading and saving methods
tested for various cases of saving and loading of objects
added comments for saveobject and loadobject methods