More work on result writer, specifically the dynamic table header writer. Added some overloaded methods for functionality.  Refactored some of the functionality to support this.