Implemented Module class. Added JSON support.