added loop and camera check
Merge pull request #2 from pmgreen/master

added loop and camera check