Cleaned up logging functions, and documented some configuration vars
Cleanups