function[ image3DOut,mImageOut,nImageOut ]=searchAndLoad(parent_directory,NumberImages,Number_zStacks,keyword)
        fullSearchName = strcat(parent_directory,'\*',keyword,'.tif');
        listing = dir(fullSearchName); %retrieves information on all specified files

        InfoImage=imfinfo(strcat(parent_directory,'\',listing(1).name));
        mImageOut=InfoImage(1).Width;
        nImageOut=InfoImage(1).Height;

        %Load image into matlab variable "Image"
        image3D=zeros(nImageOut,mImageOut,NumberImages,'uint16'); %
        for i=1:NumberImages*Number_zStacks
           image3D(:,:,i)=imread(strcat(parent_directory,'\',listing(i).name));
        end
        image3DOut = image3D;
end

