cleanup & add debug logs
Fix only first piece being downloaded (fix #33)
0.7.0