modify the file structure and add the comment of the code