Retrieved and decoded set<text>

Add const to places where it made sense in the API