adds simple statistics functionality
switched to using txt path (easier to switch between sanity and cal500 datasets)