Fixes for distcheck.
Fixed correlation example, fixes to error messages