WIP Cartridge Refactor - Updated sdk script

* Add comments
* Guard for running script