Fixed some inventory bugs, improved some inventory features.