Two minor bugfixes

And one attempt to control refresh rate.
debug removal
Merge pull request #880 from Windower/4.1-dev

Dev > Live merge