added zero check in test sudoku.c; fixed printToFile logic; test program works fine now