Some updates

Done:
 * Code cleanup (not complete though)
 * Bug fixes
 * Added `bin/docdown`

To do:
 * Fix bug with examples’ whitespace

@jdalton please review and merge.
No need for IIFE in node-only modules.