Made reflow on resize optional through option 'reflowOnResize' (default: true) + simplified various code