Made all variable names have the same style, fixed some typos in comments
Viewport calculation based on QML Item size instead of window size

This would allow a GLWindow to be displayed in a window with other QML Items.