visitor now stores info that allows backtracking through the tree; finished require & define processing; implemented hardcoded scenario for factory functions