Update emperor

This closes #40, resolves #35, solves #12, and closes #6