updated comment to reflect change
added test input arity check and error notification