Added the ability to display line and a getState function to programState