Added writeProgram() and it test code