some refactoring
some renaming
made a class to parse addr
some simplification
the daemon can collect addresses and connect to multiple other nodes