Various lint cleanup
Catch ValueError in decoding
Merge pull request #45 from dcramer/master

Correct value error and some minor cleanup