remove trailing line break
refactor parsing of html
read-only fields should be static
simplify names of block types
improve comments