Added logging to TG50
added logging
minor changes
Merge pull request #19 from InCNTRE/logging50

Added logging to TG50 and rectified some errors in TG40.