Added socket constructor and deconstructors
Changed header structures