Enabled output file generaton for backtesting. Fixed issue with cmd paramters.