Refactors parse_args to define a list type and a helper function for determine if args are valid. Closes #19