Added with...end with statements...

...to make the code easier to read and to comply with the vb.net coding
conventions at msdn. Made CONTENTDIR and currentChapterLength public to
reduce the number of parameters that many of the subs take.