added command line arugment to choose file