Updated analysis m-files