Added more comments
Encode nested list
Decode nested encoded lists