Added augmented retrieval

Also added graph printing in main and got rid of printTerms in main.