Improved exception handling
added trash to .gitignore