fixed clientcontext constructor and inventory counting
class files removed