fixed bugs. sms function complete.