Added doc

Renamed variables to definitions.