added support for dumping all headers in file if no paramters supplied