cleaning up matlab scripts