Thickness determination installed, phase correlation + minor changes/bug fixes to simulations