Renamed Certificate to PrivateCertificate.
Reorganized some things; finished MAC verification.