Small improvements in xmimsim-gui-energies.c