Removed useless example files and fix invalid usage of Iterator::valid()