Added max_rank parameter to LambdaMART.

Some other small doc fixes and code cleanup.