Smart-search prohibited commands

Fixes comments
Fixes name of a variable containing prohibited commands