Standardized For Loops and Variable names

Made code human readable by adding some spaces after commas and used
coding conventions.