edits to quantstrat-rank-backtest.R