Commented AI code