Added docs.

Fix bug #3.