closes #8 created constructor for incoming message of variable lenght