Fixed exemples and output

The examples were wrong on this page... It was probably a copy&paste typo. 

I also changed the babs function on line 159... It was a minor logic error.