Documentation

Still WIP
Partly taken from inside the portfolio document.
Partly taken directly from the code. Still need cleanup