Added a few comments.
Defined a buffer offset constant.