Streamlined error handling, added .gitignore