DEV: Updated core.py to include energy as a keyword