Add doc blocks, add get text for i18n, ec's

Adds return, param, and access docs, adds gettext to relevant areas.