Implemented a simple logger and also cleaned up error messages, to be more descriptive.
Improved the logger and repackaged it under util.