Advanced error handling
Add cover.out to gitignore
Add tests for package