codeAddress() now runs automatically

Updated the script so that `function codeAddress()` runs automatically.
See in-script comments for more info.