Error checking and propogation improved.
gitignore update