minor fixes.
output concatenated sha1's of pieces into metadata  file.