Added a compact version of get common names from begin/end
Changed funcition name to lower case to follow Scott's convention.
merged changes