bug fix: division by zero removed
bug fix: dollar chars have to be escaped before processing input string
exception message corrected
throwing an exception when feature value is NaN