Next itteration & backup

- revised frame function
- some opengl function placed in