Docs, refactoring, SSL