remove dead code and examples