Fix coding style
Add head/tail keywords for rule removal