made code more modular, fixed crashing when no internet, stopped refering to districts by initials