Removed warnings

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Add test for large file (not working with local peers)

+ make detection of muliple peers thread-safe

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>