Add a coe2 function.

Add a coe2 function to Id. Also apparently deleted a bunch of trailing whitespace automatically.