Updating verifyDependancies

Adding a few comments to code also