This commit fixes several issues. I worked on this prior to thinking abo...

Work started before Planned pushing. The commit message says everything, except that I also hard coded the date string into the log function because I was getting an error, otherwise (complained about %s not being valid for os.date.) I'm not sure if this will hork some larger way that the library works. However, I couldn't make the tests run without this change.

Let me know if you'd like me to redo anything or if something doesn't work. This is my first ever pull request, so please forgive any impolite behavior. :)