added support for configurable device detection rules

BC - no
added support for configurable device detection rules
removed requirement for the presence of root config options
fixed documentation code highlighting