Fixed PR comments. Changed some instances of for (int to for (size_t.
Merge pull request #629 from est77/master

Fixed PR comments. Changed some instances of for (int to for (size_t.