better messages on failing doctests
fix float modulo