Reincluding declaration of socket in index, per Alex's request.
Merge pull request #66 from janaspage/master

Reincluding declaration of socket in index, per Alex's request.