Fix RSA signing
Add docs