Added simulation of WiFi connection
Cleaned up some code
Properly loads user profile preferences