Ignore gh-pages dir

Otherwise it may get pushed to npm during publishing.
Fix issue with callback being undefined on error
Optimise the customParser wrapper