basic gitignore
return error type as first callback argument
add jshint
code cleanup with jshint, fix #8