Simple logging fix

- The logging now writes to a files
- I added a sample socket that works as a starting point