Documentation and performance improvements