implemented load and cleanup functions for LatticeSpace