Added basic directory listing capability
spelling fix
added command line option --nodir to disable directory listing
made things a bit more DRY
Merge pull request #1 from alexmiddeleer/master

feature: Add directory listing capability