add test program to generate octave script to visualize perspective camera
improve test program for generating octave scripts