Ensure env vars are exported, and document a bit