Additional refactoring

- added .gitignote (finally)
- Took outdated stuff out
- Improved comments
- Made code more precise and less bloated.