Add configurable logging, either file or stdout. fixes #3