Re-write config for Emperor

Part of #2