Updated the smoothening function.

From the perspective of a vertex, the smoothening now always uses the original
vector from the vertex, and the transmitted values from its neighbours.
Merge branch 'hotfix/smoothening-formula'
Merge tag 'smoothening-formula' into develop

Removed bug from the smoothening function.