Enable debugging
Add missing newlines at end of file
Fix example. Closes GH-6