Update of the spectra advanced example

- Moved the spectrum generation functionality from Document
  to the visualisation loader coroutine object.
- Other minor changes.