Added ability to disable logging and updated README example.