improved regex compiler for pathmatcher
added parameter check for id
fixed up parameter check
implementation of validate()
renamed variables
improved matching of parameters
updated test validity
added validation for params