DOC: Improved inline documentation