Code refactoring + addition of DPP tutorial
Added figures and definitions in the tutorial