scans for files in the local directory
added an option parser