Fix worker function generator example.
Fix return value for simple worker example.
Add newline to output of example worker.