use filenames rather than stdin and stdout
crude support for generating header files
improved header file generation
added header file test
removed excess newlines in headers
added header file