Reformat the codes and config files