added smooth adjustment and image changing, fixed fps definition, commented some code