added -v option, ouput header