Continued clarification and clean up of logic. Abstracted away sockets more.
Expanding file handling class.