Added Battery , Wifi and listDirectory functions.

Added Battery , Wifi and listDirectory functions.