Added mkatlas and patchatlas