move network code to the main directory and add a super simple makefile