implemented mouse reset
added header guard
removed global animating
added pausing
debug logging
fixed params
added pause state
added pause state, updated debugging