Add adding Wlan function,
some Bug fixing