Update mvalib.train and prepare.