Add missing license comment in header.
Add functions for rendering attributes and attribute values to cut down on some of the necessary boiler plate.