Added simple logging facility, replaced prints to stderr with logger cal...

Here you go! #34