Dev

i have add main function at main.c, please help to review it.