Improvement for sending execution results for tasks
Added correct main() to worker and organized overall worker process