moves commented lines
remove console logs. makes sure that the header is not modified if it doesn't exist
fixes a problem saving the text of the overlays
sets the default order of the overlays