Improvements to the general readability of the code. There are known issues (pilot_new_edit, Freq column)