Fix a bug in is_negative and add documentation for numerous functions for QQ.