Fixes Problem with Nested Collapsibles

+ Careful uses state and timeouts to get the right max height at the right
times.
Adds some docs