Tidies up error handling
Adds basic tasks
Self-referential linting for npm test