adding functions for analyzing whisker behavior