restarted code, all comments now matlab comments