Changed z-axis to a generic name

Need to simplify nxmerge to cope with a greater number of cases. The
z-axis can be renamed or another axis added in a later script.