Fix warnings, add cabal file