Made updates to allow it to be installed as a global CLI via NPM.