added @method to rect documentation
some minor fixes in add and remove classnames
clean ups in package json