Better initialization of output states upon boot and program/settings change

Fixes #144
Fixes #139