Respect nonce when hashing empty directories.
Added more docstrings and cleared old some old, useless junk.
Select the peer to sync to based on a probability density. Also a hacky workaround for a potential stall.