r5

core.lua: Some clarifying comments.

ui.lua: Hoist some of the behavior and style properties into constants
so they can be tweaked more easily.