Added voxelsize to update values function

also merged pheight and voxelsize variables. This fixed bug where voxel
height didn't update.