fixed the localized strings; cleaned up the implementation; fixed the indentation