Fixes Warnings
Fixed warnings regarding for loops and other stuff. Note to you guys,
don't ever do i=i; in a for loop just leave a blank ; if i is already
declared and set.
Merge pull request #419 from RobertBColton/master

Fixes Warnings