fixed error messages for functions numerator and denominator
added functions non-negative? and non-positive? along with the unsafe variants