Added a few chapters of documentation. Enabled unit tests.