changed smooth-scrolling algorithm

NOTE : some variables are removed. see README