Fix broken things

* Handle 0 correctly in chimpDiscrete
* Fix transition_energy() arguments