Impliments getDataExtremes and fixes some varibale names