fixed correlation code error
added example correlation plot