Added a Logger class (Thanks to ThingModel), code cleanup.