Socket class fix

Fixed socket class constructor and added new ones, added getters for
instance variables