Fixing up contact codes and examples for new release.
Rename of contact_distance to contact_profile