fix issue #324 crashes. add 'resize', {}. fix documentation