added command line args to main