more document and clean up for sendfile