Improved graphic interface animation.
Code refactored and better modularized.