Added API docs, cleaned up some other docs, and fixed CMakeLists.txt to reflect changes.