Adding logging code and removing Trace statements

Solves issue: Current logging implementation eventually uses all available disk space #10