Some documentation and minor fixes.