Added the complete funktion of wifi presence 

finished