implemented selection of message to send in client
minor fixes in client lib, refactoring to meet server style
+ implemented method to choose a type of message to be send from the
client