change order of comparison for inventory checking
handle undocumented format quirk: spxxst files contain an extra column in header section
fix typo in default element list: pdhi -> phdi
use index to speed up merge/join
pep8
fix tests failures for requests>1.2.0 - use httpretty for http mocking; closes #47