fixed refit
fixed doctests
fixed more bugs
Merge pull request #702 from chrisfilo/fix/afni_refit

fixed refit