Documentation and function attribute fixes and enhancements