Fix vardiff
Merge pull request #70 from LucasJones/master

Fix vardiff calculation