Comprehensive updates to documentation and tests