fixed infinite loops D: added new examples