Fixes decode -> decod_to_list
Fixes example that should use `encode_to_list`
fixes encode_to_list