Fix some regressions in examples in docs. Remove some statements that didn't belong