Tweaks to code that supports embedded cracks
Fixed an issue with the maxNode routine