Improved the program

It can run according to the directions in operation matrix and draw figs
automatically.