Added ability to add device to a network, modified some visual elements, cleaned up some code.