patched behavior of devicelist and commandlist file parsing.  Though much of the code is duplicated, devices require being wrapped within a set to avoid dupes, while commands should allow for duplicates and not be sorted.