add self-doc string for class methods