adding initial copy of spiTestMain.c