Added train_test split function to metergroup; needs to be improved a bit and tested more on corner cases