Added print control, and remove multiple print parameters.(network has
been printed twice.)