general cleanup, config moved to module, jsdoc started and readme updated