Updated analysis. Now, it is able to generate sorted energy file and histogram graph