Documentation update

Added and updated documentation in basic and framework modules, and ensured it is in accordance with Sphinx syntax.