Fix ParseCert() function, add variables, add a return statement