added handling of periodic boundary conditions and vortex length filtering
Added extra utility functions
Refactored the example to conform to the new utilities