Fix a few bugs.
Rename readme
Add license