Documentation and small bugfixes.