Ready plot.Improved animation. Some refactoring.