Edited some code related to graphics.

Simply cleaned up and edited some code. Still have the bug related to
models other than the cube.obj file.