Add config file
Minor erros fixed, now running
mail module done