clarify buffer handling and sizeof()'s

dcraw is very succinct -- some comments and spreading out of
statements may make it easier to see what is happening. Also use
parentheses around sizeof() args in keeping with dt style.