better error checking, shared global nodehandle, added ability to sense whether a door is open or not