cleaned code
fixed remaining examples