Replace some fmaps by <$>
Use cabal build system
Fix indentation of ifs in do blocks