registerAttempt doc comment fix
constants instead of hard codded values