Added NCOMP to header
Added -hi and -ho options to control input and output headers separately