Documentation and minor fixes.