Add configure email function
Rename main() function of all modules