rename variable in handle_arg_op

also add commentary
move set_rand_bitmask into utils.h