Fixed bug with outptfile.
Added example network.