made changes to CustomMCMC.m