refactor so that printing headers is on the common path
more verbose parameter explanation
typo: call method instead of its hash key (bug 1073264)