Added file output.  Subject to be changed,  but very basic output should make awk'ing the data into a different format easy.