Fixed most of the errors and compleated the net connection