Removed dead and confusing code from examples