put /sntp main() in main.c

changed both the project files and test files.
and rename main.h to sntp.h