set height to 0 while measuring window height
take viewport and container as options
add container option. set container as relative css.
error checking
call resize instead of distribute_divs
reorganize