bug fix on energy calculation code.
fixed modulo calculation order.
add simulation start (end) messages.