adding readme, refactoring json serialization method to instance