Networking lab's code fixed and commented because the teacher can't code for shit