Reworking example framework/executor to be aligned with java/c++ examples. Includes many fixes.