fixed bug with printing DWH and OHLC. generalized version of parser