Added animateProps option
Code refactoring
Fixed reference to DEFAULT_ANIM_DISTANCE
Added array type check for animateProps
Added more extensive test examples