Updated documentation (a bit) to match new code. The documentation still needs to be updated some more.