Adding documentation and more tests.

Fixed a few typos and extra spaces and added feature documentation in README.md. Adding extra tests.