Adds the graphics loop
adds code for the inst_data header
adds inst_data header