multiple fixes to examples and added run_once method to ZOCP