Replaced TAB for spaces for indentation. Fixed bug on local views. Replaced initParams for a better alternative in initAttributes.