Documentation enhancements and code comments