Fixed a typo
Added device specifier type/value parsing
Added key-value parsing for options
Added equality check
Added a quick test