Added more documentation
Also take negative infinity into account