Initial commit of usable version with all tests passing.
Added documentation to README.md.