refactored code and added download translations file script