Updated shownetwork.sh and fixed a few bugs