Viewable distance check fixed.

[FIXED]     BaseModule viewRange check was inverted.
[UPDATED]   Better variable naming on Functions.