Added/changed documentation, minor bugfixes.