add a comment explaining some code
correctly calculate the padding of the first line in the update box

fixes #44
0.2.1