Added most of the documentation.
Finished the documentation.