Changed detail in factor file
Removed range(len(...)) statements and replace them with enumerate