Fix docs bugs & add inheritance diagram  [ci skip]