renamed functions with more explicit names and add 'commandwindow' with warnings in Matlab files