Improved header row and added option to output rows of pipe-separated results which are easier to manipulate in a unix pipe.