Big rework of examples, refined Scala generator further