Adding limitFPS functionality to cap animation rate at ~30 FPS. Added some documentation.