Erase old codes and introduce localizedString macro
Add error handling codes