working command line arguments
minor changes