Tidy up and some documentation
Add some styling
Add yuidoc config and ignore output in gitignore
Improve docs and remove commented code
Check handler param is a function before invoking
Few styling tweaks