Refactored the touch-listener and fixed bugs. Refactored Chart and Barlinechartbase. Scaling gestures are now completed.