Adding Bill's changes for discharge file fix

This fixes issue #78