- Add macro function in DEBUG build to stat pread / pwrite calls, to facilitate optimization.
- Add some comments.