adding command line parsing and accepting multiple inputs