update licences

Signed-off-by: Marc Lefrançois <mlefrancois@mirego.com>
Add some new tests and example to test for rounding errors

Signed-off-by: Marc Lefrançois <mlefrancois@mirego.com>