moved serial comms into library, brought in opengl graphics stuff