made mloc_multirun a function with varargin input