Added some stopifnots, renamed function to paramatch