Added setupNetwork() method.
Added IncomingReader inner class