Improve formatting of chunk.rb

This commit mostly wraps a lot of long lines at 80 characters, to
improve the readability of the code. Additionally, I modified the format
of some of the YARD tags to put the argument before the data type, and I
fixed one incorrect YARD tag.