Documentation and misc cleanup.