Add function for printing network and weights.