Fixed cabal file for compilation locally. Also cleaned up a few things.