Corrected CircularBuffer bug when readpos == writepos
Adjusted CommentScanner to not use an underlying scanner and accept variable comments.