added sigint sample code and validations to command line