implemented functionality to morph two paths and return a valid path
added a new example and refactored some