Write README.md, fix bugs.