Fixed opening gl error, added center function, added debouncing for gestures vs panning, added zoom and panning limits, probably  some other stuff too