got test2.c working with numPics and write input--still chasing down crash