Corrected the path of printheader and added check for direction
Corrected the path of printheader and added check for direction

stnava/ANTs,stnava/ANTs,stnava/ANTs,stnava/ANTs,stnava/ANTs,stnava/ANTs,stnava/ANTs