scaling weights, return dot and fmap from sampling, iterate over the
terminal spans in a rule
Merge pull request #51 from wilkeraziz/master

a few minor changes to pycdec