Feature/logging to stderr

this implements a class to output to stderr instead of stdout. please let me know if this code needs some further improvements.