cleanup doc-strings and library headers