adding FSM and new python program jpeg is working
sum_r needs work