Modified packet  read and write functions, finished Network Router

<cstdint> currently doesn't work