Fixed logging to console and a file. Using log levels and a verbose flag