modify Makefile to remove abundant files.
Fix bugs of pc_np_ws_lin_proc and add storing to files.

1) add storing of files.
2) fix bugs of snprintf, note that it is related to snprintf(str, n...),
n is the digit, not the char size.
3) remove some unnecessary codes.
4) add a demo of test.c for snprintf mistakes.