bug 1137: corrected the function for the user_agreement and added comments for the...