Error checking incase smsep is zero

Here if smsep is zero then you get a divide by zero.  Again, using txpl as a backup and spitting out a warning message about that.