Moved Socket to file
Moved types to files.
Moved types to files.
Moved tests to files