Added documentation, including examples in README.md