Added more sorted set functionality
Changed api and fixed some stuff
Trailing changes