Fixed correlation example, fixes to error messages
Merge pull request #157 from kosovan/master

Fixed correlation example, fixes to error messages