various improvements
Merge https://github.com/chalmers-kandidat14/off-lattice