Some cleanup on files. Revenue phase correction part 1, description of part 2 in TO DO
.