Fix broken link & specification for code blocks

Broken link: `/doc/general/probabilistic_inference.html -> /doc/general/inference.html`

Add two lines to specify what the code is doing.