Added an explanation for the magic numbers in the generate_index.
Changed buffer sizes for the message block.