minor refactorings
peer id's are char_list instead of binary
ip address maintained as string to keep it consistent