Changes to finite differences implementation with Cody's sliding window.

Cody's code will be merged later.

Earlier repository started to exhibit errors. :(