Some formatting changes
Fixed issues with the last network address
Calculated the host range