Refactoring API and workers, update doc