added formating function to config options & properly setting animation speed