Finished  cleaning code for network package