created debugger class to handle console & logfile output