For reversing the raw modes, couldn\'t you just take $1 and replace the - with a + and the + with a -. Seems like it would be a whole lot simpler.