Return energy injected into machines properly.
Merge pull request #114 from micdoodle8/master

Fixed wrong values being returned for energy used by a machine.