Fixed pixel energy calculation, added testing clients