Fix up some typos in the shell script
Process input file and put relevant bits into a dictionary - complete and working