Seperated model code from view code, added classes to help with lighting, made a few macros into inline functions, etc. Fixed issue with vertical subdivision not working.