Added update function

Closes https://github.com/PistonDevelopers/opengl_graphics/issues/48
Merge pull request #49 from bvssvni/master

Added update function