update readme, abstract wifi toggle function