fix remaining coverity issues, add modeling file.