switch between greedy/lazy drawing
Fix some range errors
Fix style nits
Implement close button event handler
v0.0.19