fix cabal build issues
cleanup licensing info. delete files which are no longer needed.
add helper functions.