Wrote documentation and linked to it in README.md