Improved documentation for inheritance