Update osppeer.c

Added task 3 stuff plus a fix for the popular tracker bug