clean file and fix example bug