Add debug option for logging. Closes GH-32.
clean up docs