Reorganized source code and input files into separate folders. Added Scan.java and ScanTest.java