Added eigen lib; computes energy/plasticity