Update calculation of number of pieces in download
Handle erroneous have messages
Close socket when download is complete
Update index of last piece
Modify piece update method
Process multi-file downloads
Only maintain one open request per peer
Add prettier debugging statements
Only mark peer "writeable" if out buffer ! empty
I definitely just downloaded Walden
Fix function to write data to file
Add 'written' as piece status
Keep track of length of request per block
Multifile downloads work again
Add comments, clean up debugging statements
Actually update which blocks have been requested
Only re-request incomplete pieces
Fix request for last block of last piece