add main.c to finish the main part of app in alp