now reads files to analyse when run with flag -a