More code cleanup: remove redundant MATLAB ui code and fix function calling