Cleaning up the code a tad and adding a .gitignore.