Added comments to output function
Refactored the function for generating the pixel energy matrix
Refactored the function for calculating the energy of a single pixel
Commented function to perform a single horizontal seam carve