Added documentation for gosper method