Major changes to the wraith script to streamline the API. These are only tested on a Mac and not final yet, expect more changes over the next few days