module.exports now exports mostly objects instead of functions, added plugin capabilities, restructured mosrestructured most code