Experimental fix for pointer manipulations in paths.
Code not clean: comments, prints exist.
Debugged generator. Cleaned printouts. Basic
tests successful.