Improved Correlation, minor fixes
Merge pull request #1 from barisser/revisions1

Improved Correlation, minor fixes