corrected some typos:   src/main.c
	simplify some code:   src/util.c