adding documentation and adding more code for working wireless communication