fixed the animator api and added new example