Update for 0-byte file support, including test case.
Merge pull request #39 from PNPhillips/master

Update for 0-byte file support, including test case.