Added a few necessary imports.
Editing the group estimation methods to handle TS distances.

Originally taken from the kinetics equivalent, therefore
editing the system to read in distances and generate the
group values.