edited rules to handle line breaks in formula. Also edited dynamic var one fact specific to a datatype