Inputfile parsing implementation correctness confirmed on sample cases.
gedit backup file removed.