more legible code for defining style
order code for legibility
add comments
minor update