Fixed a bug with YASR and updated the examples