Updated all the miMAP scripts

Updated all the sctipts with the final working version. Please close all the issues in miMAP repository, so  it will be less confusing.