Analysis GUI creation and various bug fixes