add print.c&print.h
refactor print
trivial edit