[NRY] Cleans up main.c. Improves wifi code with "waiting" animation.