Extensive modifications to support the user-friendly file format detaile
din TODO. Modifications tested on example/network. Still to do: update
all examples to the new format and document it thoroughly. Review and
comment new code