Finished adding logger to code. Code is tested and working. GOOD VERSION as of 26-07-2014