Updated `build-simple-endpoint` to ignore nil parameters
Fetching json now appends "format=json" to URI
Added `get-network-statistics` function