Enhancement of the Primitives examples

* Added variables produced by generators
* Updated simulation functions signatures