Added some file checking (was pulling in index.html), and foreach loop checker (errors poping up)
Merge pull request #1 from man4mac/master

Consistency Checks