Add documentation for parameters of new functions
Integrate CSR and private key validation steps into client
PEP8 formatting fixes
Correct PEM/DER return behavior