Read command line args, convert strings to ints, validate input.