Added .gitignore and removed legacy code.