Update documentation
Refactor threading support