added some exceptions to .gitignore
more readable code to print error messages from api