Updated .gitignore and cleaned up code.