Added command to flip the pages horizontally, removed passing of
unnecessary attributes to the shader, cleaned up some dead code and
removed a few printfs.