user-adjustable animation rates for #49, fixed compiler warnings