clean up data set and create a tidy data set