upload handler: add hasFreeSlots function
swarm: fix comment
peer: fix switch/case and interestedReceived function
all: update constructor method name (refs #69)