Add documentation and rename some variables - refs BT#7998
Add translations, move functions, add columns and clean some functions - refs BT#7998