Added MIT license.
Fixed some formatting issues.