Changing energy and momentum to arrays + Integration
Merged