minor modifications to the plot code
added teachx0s_state and modified teacherx0s
added test_state