made all correlation functions take an optional reverse argument