The training protocol API now has a method to calculate the centroid of a named target. This closes #51.