Add MIT license to ./LICENSE
Split the package into a library + executable
Fix main executable