Merge pull request #2 from MB6/logger

proper threaded logger courtesy of max b