split file and add comments