Correct main.c
Corrected main.c
Big bunch of stuff.

- Implement saving messages from clients in memory.
- Various corrections.