Added logging.

Also updated README.
Fixes #11.