more work on cs520 prog5.c/h, almost at the point where I can start running tests