Wrote up tutorial in README.md and fixed a bug