Documentation and fixes.