Adding cleaning, refactoring logging.
* Adding simple cleaning code.
* Wrapping logging into helper function calls.
Adding language config stuff, including defaults, to fix compilers on systems.