Added checking for correct address and range format. Some improvements in translation.