Added some comments.
reordered for loops.
Add a variable F to denote the number of total metadata factors
(counting all possible categories)
**NEED TO TEST cont and categorical correlations***
cleaned up correlation.py of unused functions.