finish the get profile function. Add some modified utility functions in Geometry Utilities in the process