Included .swp file to be ignored
Functionized optical flow calculation for ease of use