Made quickLate aware of Hmat. quickLate is now somewhat more intelligent about periodic boundaries and wrapping.