added anim time to config file, cleanup a few math helpers