Fixed some comments.
Looks like it will be easier to rewrite the note extraction function first and then to do the padding function.