Modified GL rendering to include orientation (Justin), and did some further cleaning