Updated documentation and correct the case of the 'ymax' parameter