Fix endian bug in energy computation
Add an "F" command to help debug the endian problem