Update worker script wrapper
Polish code and update documentation.