Added resize utility method and unit tests
Added resize in doc