cleaned code and deleted useless controls in examples 8.6, 8.7, 8.9, 8.10, 8.11, 8.12, 8.13