Revert "Revert "switched pin() to toggle() and better CliendID and Topics""

This reverts commit 8f0a7c48a3b974f5784731c712ea891e10c1e1c1.