added docstrings and renamed the GenericDecoder to PayloadDecodeHelper