Make LDocGen work again!

This fixes a mismatch between a documented function and the corresponding function, which causes LDocGen to fail.

Also, I've updated the Travis script to try to build the documentation to try and catch problems like this in the future.