Add fputc, puts. fix some bug