Implemented logger module that is more efficient than the old util
function log_to_file and can easily be extended to provide more
features. The old util function is gone and has been replaced throughout
the codebase.