add code format config and reformat code