Added readme and license, and small typo fix in code