Added forgotten change of bitwise or when dominant z in voxel layer
remove some things, fixed end point min z height bug