First version of logging

Logging class added in
main class edited to create logger
application class edited to use logger