2695: Pretty print of negative fractions

Fixed up doctests, fixed some code quality errors introduced by
said fixing of doctests and other mistakes.