Moved creation of residual network to network class
Fixed typos