PBC bug.

Typo caused the PBC to be applied incorrectly.
Derivative of clusters with time

Currently implelments a very crude differentiation of clusters with
time. Currently applies it to a sliding windown