removed debug code, updated examples