Still nothing really working yet. Playing with how the history function will work.

Thinking about some functional ways of applying stuff to the data in a time series.. maybe making a proper tree structure of nodes..
Should move the factorization code somewhere else in to a common module.. not even using it as it is.. but it is too nice to put anywhere else right now.