Localization refactored and documented.
Refactorings