Import the codebase and fix a few things.