refactored graph drawSP500 into initgraph and drawline
added some sample data to play with