Added window to computation of velocity and cleaned up single_post.py.