Change: Refactored nethandler

Separated functions in the nethandler package to their own files based on purpose.