reformated
adds logic to process input
adds input file