KMP working, some fixes to GUI, other minor fixes