Documentation and minor bugfixes.