Moved sms text creation to protocol class and some code cleanup