Added resize options, which listens to resize events to re-distribute the elements
Hoist variables at the top of the scope, comma first style
Removed 'if(auto) draw();' pattern
Use auto in molecule example