Fixed several issues.

* Starting adding sphinx documentation.