Added message class and some message deciphering on server side