extract method for parsing manpage header