Removed multiple module.exports definitons and defined one object export object