fixed imports, new merge algorithm runs better
refactored text localizer
refactored and testing code