Fixed some minor bugs in the logger, and provided additional documentation. Added some starting log code to the mains.