Refactor processing step and fix processors.

Refactor processing step so that each file type is processed independently of files of a different type. Refactor processing so that each phase is executed independently of other files (of the same file type).

Replace calls to readDirective with appropriate calls to readBlockDirective.