- fix various undefined variables
- implemented function to return all active client-id's for inserttask-function (task for all clients+master)