Initial commit of working code that takes files instead of input. Will now convert.