Modified input parser to catch the source/target from the file.
Added parser for output file. Algortihm and Main modified to support this feature.