Moved the enum in the common package, renamed VerificationEnum to VerificationType, comments and code cleaning. Added certificate verification.