Added tests, updated guide.

Added unit tests and updated guide.