Add README.md and fix a bug