Cleanup + doc

Ok for secureProtocol