Updated Code

Added Scan File Functionality