Reorganize source a bit and add simple main module for testing
Add cabal file and license file