fixing some minor issues and updating the description of the behaviour when there are decoding errors