more documentation and some code cleanup
Ignore device name and find prefix "the " in device.matchesIdOrName(). Don't allow the actions "device on" and "device off" withoud "turn" or "switch".