some small optimalizations, javadoc and preparations for adding the REST endpoint(s) for the task queues.