Updated .gitignore
Moved code into classes.