Added compareData()

setup comparison of data with the previous routine