refactor code, removing extra bits from setting hardware clock; add preliminary code for non-systemd manual time setting