Fix configuration
Fix documentation
Fix thread creation
Refactoring