fix matlab, add logging,generalize mprage rsync