DOC: Added code on the simulation example. More documentation is needed