use new structure, add comments

the new structure style is used (array of objects, each with an "h" attribute) and a few comments were added, and a little inline styling on the textarea.