Getting started

I would use a logger here. All output can then be saved to a log file and sent to stderr or stdout with one call.