delete unused prototypes
printf and delay use function pointer
change makefile