added a counter to newMessages function
some bug fixes on last commit
fixed gender to accept a name without it being found in the messages
added small version of participant structure to main function