Add documentation for resizeS function