Cull bogus window resize code
Add comments