Update documentation and small fixes.