corrected state chart and made new pdf