Fixed error in buildMoleculeXYZ

Molecules should be converted from z-matrix to xyz coordinates correctly now.