updated some of the Scan. added final input file