Fixed bug in polarization analysis (data length)
Modified class_final and final_result functions