adding documentation for attribute_was mehtod