Small Refactoring

To:
- appropriate myself the code
- unify comments and formats
- fix typos
- sandbox the safeConnect function to HWifi to be symmetrical with the
safeElect function