Code corrections - global variables
Corrections to profileFile variable
Cosmetic changes to the code
Code correntions
Major improvements to the code
Added more commentaries + change variable name