started adding logic for inquiring phase of lemur behavior and smoothing out overall structure