Refined Pixel Energy Determination Algorithm. Much Better Results. Investigating how to speed up program now.