added data weighting function and hi-Q model parsing fn