added documentation to logger class, differentiate between debug and release and handle error msg accordingly (console, messagebox)