Modernize gaussian analyzer.
Fix lattice repr.