Doc updates and bug fixes.