BUG: better error checking
Merge branch 'master' of https://github.com/stnava/ANTsR