added method that convert an object and it references into a dictionary, added properties to return that object as JSON string or Pickle string