Logging 1 Pullrequest

This pullrequest should include an example of every use case for the logging class Lg. Once it is merged, more pullrequests will follow making use of Lg everywhere,