formalized mesh class, added pre render checks

need to fix gl.drawElements