Documentation updates

- Fix docs heading top
- Fix documentation naming errors
- Moved scoped variables to be named as scoped not global variables