Add imports, add documentation links, refactor some package names to match API.