Correct user confirmation workflow and reformatted source files for readability