fix defining-rules
add textmate syntax highlight
more precise comments and captures