Purifies some functions
Simplifies some code
Adds cabal sandbox files to .gitignore