Update class.sms.php

Cosmetic changes. Also added functionality to make the sms work with the sms gateway. It did not work before.