Updated README.
Added licensing information, and commented code.