update makefile and main.c to reflect changes of previous commit, also place tempfile...