Improvements to /setitem command.

I have added some advanced features to /setitem.