piece receiving logic working, and hash checking. starting to write to disk...