added -n flag to limit number of files to be ran