fix bug in timestamping. munge training data from portfolio.