Now writes to the relay when locking/unlocking
Merge pull request #1 from adaptivelab/master

Now writes to the relay when locking/unlocking