Added new statistics functions
Minor changes to data transform file