add cabal file and license
remove LANGUAGE pragmas