Renamed a variable.
Added comments.
Instead of using a stringstream, parse the header to find the positions
of the information. Also get the network.