fixes rounding errors in fees and valueout
Merge pull request #80 from matiu/bug/rounding-errors

fixes rounding errors in fees and valueout