Improve comments, and track number of bytes written to a stream.
-rw-r--r-- 133 Makefile
-rw-r--r-- 2577 format.txt
-rw-r--r-- 5553 scandir.cc
-rw-r--r-- 10834 sha1.cc
-rw-r--r-- 3231 sha1.h
-rw-r--r-- 3275 store.cc
-rw-r--r-- 3258 store.h