Some small changes to structure
Preparing the code for being able to send any type of struct, not just
char*. Still have some memory leaks, this is because of Release not being
called in System when shutting down the program for some reason.