Improved application logger. Fixed some minor bugs. Removed unused class.