Completed compiler module refactor