updating gitignore
cleaned up main() a bit