Made frame constructors receive smart params. Some refactorings and improvements to localization.