File reorder

Merged the contents of "section" into "reg_text" (which is almost the only place they were used). Should make the flow a bit easier to follow.