Implemented ToString
Fixed dead code warning
Much more logging