frequency-correlation value

- add function to estimate the frequency-correlation value
- fix some small bugs
Is this change just to make the plot look nicer?