added command line arguments and create map file if it does not exist