Moved log functionality to instance class with interface. Static Log class use this instead. Standardized comments, added comments to everything.