added input parsing, Dow Jones example data and changed input from double* to vector