Added function pointer to sample_loading.c, modified Makefile to build m...

...ain chdkptp.c
We'll need the program to function normally, and allow this main to run depending on the mode. I'll provide the update when I've merge this PR.