making an error more explicit
adding a toString for debugging info
removing an unused method
naming modules after the basename of their parent script instead of the
URI
making the toString nicer on script environments
adding some error handling on the broadcast function to ensure its
argument is correct