cff-to-opencog perl parser version bug fix

Some small bug fixes
This change is not correct; costs are floating-point!