bugs fixed in xlattice_go/reg; cleaned up; tests succeed