Refactor key constants.
Some documentation.