removeObject method added and jsdoc comments