Fixes #7 and fixes #8

Fixes counter issue and updateUnderlying is called after import now.
This is also the commit to fall back on if moving the openglwindow code
to use QGLWidget instead.