Added a shared header file. Filled out more of the rendering code.