Added separate input & output files. commented out test code, but will
leave it in as sample.