added parsing and validation command line args