reviewing and changing comments
removing braces
moving cluster energy (cost) function to energy_function.h, changing name
changing variable name
renaming/changing 'energy function' to 'cross-entropy'
renaming files
changing arg name
adding newline