fixed negative rational numbers comparison (denominator is now always positive)
Merge branch 'master' into new-book-events