+ Refined logic for connecting to peers.
+ Changed log file name format.