remove unused gfx code
change names
fix crash caused by fstream
use lambda for sound callback
Reformat GlutMain