clean up
clarified comments
implemented simple history
Merge pull request #18 from stevelyall/logging

Logging