Added information to the eyaml files and seperated primitive functions, as
well as hopefully fixed segmentation fault in OpenGL3 graphics system.