Add LICENSE and some more docs to README.
Some code cleanup