Add decoding errors
Merge pull request #5 from PreetamJinka/4-errors

Add decoding errors