Updated documentation.
Fixed compile warnings.