Docs fix the main warnings and errors during sphinx build

Docs fix the main warnings and errors during sphinx build

plus remove duplicate method llf