Update to GUI version, including code for multilayer analysis.