Fixed: Spelling error; relavant -> relevant.
Fixed: Now writes the AST file as the last pass.