EmpricalFormula: fix (negative counts were casted away) and extension; documentation fixes
doc fixes
Merge pull request #923 from cbielow/AMT

EmpiricalFormula: fix (negative counts were casted away)