Fixed code structure and documentation.
Added function to inject code with task id only.