A few cosmetic changes to error handling. A few tweaks to .gitignore