added some comments for clarity
finished commenting code to my liking
Enable sockets