Corrected bug in makeOffer() to prevent multiple offers for the same task. Also updated comments indicating changes to functions