Change logic of EnergyDrain
Put dependency libraries into source code