Added initial pass at phases and dependencies between visitors, and cleaned up formatting.