put main() in main.c,

switch the content of main.c and ntpd.c