add deprecation message in class documentation