Add comment
Fix signed vs. unsigned comparison warnings