Added logger.rb and created tests for it
Moved the logging code into its own file. Updated logging code and added tests