updated the sms class and add a receive sample