added animate functionality, ability to read data from a text file (sampleData.txt), Now animation is simulated by ploting data every one second.