Updated exception handler. Added more .gitignore files.