fix(docs): Added documentation to cert.js

This also fixes the behaviour of cert.js to comply with the function names.