added verification and comments