Updated program logic. Added config area to add wireless devices. Added commenting.