fix bug in returning iostream class status
nifti class interface change
fix lddmm error