For..in fixes + Namespace

* Added a namespace to aid in uniquely identifying the script when installing from different locations.
* Fixed potential problems in for..in loops.