Socket class fix

Fixed socket class constructor and added new ones, added getters for
instance variables
Merge pull request #1 from amazingcaleb/master

Socket class fix. Thanks krubcake