Added documention and use WorkerID for worker (temporary code breakage)
Added template test and fixed error output