Working version

First working version of program.  Output file is generated, but needs
formatted to desired specific format.