Bugfixes and documentation updates.