some comments

also moved some logic out of kepaxos_run_command() for readability