Additional updates to Erlang to monitor nodes for liveness (work in
progress). Some other small fixes to Erlang code.