Fixed undefined variable errors that were hidden because they would be found in the global object.
Added the option to turn logging on from outside the module
removed dumb intelij files