Edit code to shorten and add eclipse stuff to gitignore