Rework the encoding rules section
Merge examples into encoding rules section