Improved documentation and resize method.