fix a typo
add a simple implementation of time lag analysis