Byu/plot

listen to window resize, support groovy cursor, minor fixes